<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <script src="{{asset('common/common.js')}}"></script>

    {{--<script src="https://cdn.bootcss.com/angular.js/1.6.4/angular.min.js"></script>--}}
    {{--<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>--}}
    <script src="{{asset('admin/js/angular.min.js')}}"></script>
    <script src="{{asset('admin/js/adminModule.js')}}"></script>
    <script src="{{asset('admin/js/service.js')}}"></script>


    <script src="{{asset('node_modules/jquery/dist/jquery.min.js')}}"></script>
    <link href="{{asset("node_modules/bootstrap/dist/css/bootstrap.min.css")}}" rel="stylesheet">
    <script src="{{asset("node_modules/bootstrap/dist/js/bootstrap.min.js")}}"></script>

    <link href="{{asset('admin/styles/admin.css')}}" rel="stylesheet">
    <link rel="stylesheet" href="{{asset('plugins/jquery-loading/jquery.mloading.css')}}">
    <script src="{{asset('plugins/jquery-loading/jquery.mloading.js')}}"></script>
</head>
@yield('content')
<div id="loading" style="display: none;position: fixed;top:0;left:0;width:100vw;height:100vh;"></div>
</html>

<script>
    var backbtn = document.querySelector('.back');
    if(backbtn){
        backbtn.onclick=function(){
            window.history.back();
        }
    }

    $("#loading").mLoading({
        text:"请稍等...",//加载文字，默认值：加载中...
        icon:"",//加载图标，默认值：一个小型的base64的gif图片
        html:false,//设置加载内容是否是html格式，默认值是false
        content:"",//忽略icon和text的值，直接在加载框中显示此值
        mask:true//是否显示遮罩效果，默认显示
    });

    loading = {
        show:function(){
            $('#loading').css('display','block');
            $("#loading").mLoading("show");//显示loading组件
        },
        close:function(){
            $('#loading').css('display','none');
            $("#loading").mLoading("hide");//隐藏loading组件
        }
    }
</script>
